<?php
// this action does not support edit respone
// just support add new respone
    if (!defined('EXPONENT')) exit('');

    $request = null;
    $respone = null;
    $config=null;
    if (isset($_GET['rid'])) {
        $request = $db->selectObject('rsrequest_item','id='.intval($_GET['rid']));
    }

    if ($request && (exponent_permissions_check('edit',$loc)
            || exponent_permissions_check('administrate',$loc)
    )) {
        $form = rsrequest_item::respone_form($respone, $request);
        $form->location($loc);
        $form->meta('action','save');
        $form->meta('module','rsrequestmodule');
        //$form->meta('ajax_action','1');
        $form->meta('rid',$request->id);

        echo $form->toHTML();
    } else {
        echo SITE_404_HTML;
    }

?>